﻿using Estsh.Core.Base;
using Estsh.Core.Model.Extend.Models;
using Estsh.Core.Models;
using Estsh.Core.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Estsh.Core.Wms.IRepositories
{
    public interface IFinishShippingRepository:IBaseRepository<BaseEntity>
    {
        public List<WmsOutstock_Extend> GetWmsOutstocks(string orderno);
        public List<WmsOutstockDetail> GetWmsOutstockDetail(string orderno,int status);
        public List<WmsOutstockDetail> GetOutstockDetails(string shippingNo, string cartonNo);
        public List<SysStock> GetSysStocks(string orderno,int status);
        public List<SysStock> GetQtys(string cartonNo,int qty);
        public string AddRackPackage(string cartonNo,int loginid,string shippingNo);
        public int UpdateStatusAndLocate(string cartonNo,string orderNo,int qty,int loginId);
        public List<SysStock> CheckMaterialSplit(List<SysStock> cartonNo, int splitNum, string loginId, int splitCount,string shippingNo);
        public List<SysStock> GetMaterialInfo(string cartonNo);
        public int UpdateOutStockDetail(string shippingNo, string cartonNo,int loginId);
        public int UpdateShippingLog(string shippingNo, string weight, string loginId);
        public int UpdateOutStock(string shippingNo, string loginId);
        public int GetDetailQty(string shippingNo,string cartonNo);
        public List<SysShippingLog> GetShippingLogs(string shippingNo);
    }
}
